﻿using Fishing.Abstractions;
using static Fishing.Common.Win32;

namespace Fishing.Core
{
    internal class ThreadRipper : IThreadRipper
    {
        public void ThreadRip()
        {
            SetThreadExecutionState(ExecutionState.Continuous | ExecutionState.SystemRequired | ExecutionState.DisplayRequired);
        }

        public void Restore()
        {
            SetThreadExecutionState(ExecutionState.Continuous);
        }
    }
}
